package com.listen.task;

import java.util.List;

import com.listen.vo.XunwangVO;
import com.listen.model.User;
import com.listen.service.UserService;
import com.listen.service.DB.XunwangServiceImpl;

public class XunW implements Runnable {

	private UserService userService = null;
	public XunW (UserService userService){
		this.userService = userService;
	}
	
	@Override
	public void run() {
		User u = new User();
        u.setZy("X");
        List<User> userList = userService.selectByUser(u);
        for(User user : userList) {
        	XunwangServiceImpl xunwang = new XunwangServiceImpl();
        	try {
				xunwang.indexPage(user, new XunwangVO());
			} catch (Exception e) {
				e.printStackTrace();
			}
        }
	}

}
